﻿namespace Pyramid.Text
{
    public abstract class Encoder
    {
        public abstract int GetTryteCount(char[] chars, int index, int count, bool flush);
        public abstract int GetTrytes(char[] chars, int charIndex, int charCount, Tryte[] trytes, int tryteIndex, bool flush);

        public virtual void Reset()
        {
        }
    }
}
